<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>随手快递</title>
    <link rel="stylesheet" type="text/css" href="../../AUI/css/aui.css" />
    <link rel="stylesheet" type="text/css" href="../../font-awesome/css/font-awesome.min.css" />
    <style type="text/css">
        .aui-content {
            margin: 35px 10px;
            padding: 10px 0;
            text-align: center;
        }
        td{ width:180px; height:25px;}

        p {
            text-align: center;
            margin: 20px auto;
        }
        .aui-list.aui-list-in .aui-list-item {
            background-position: 0rem bottom;
            padding: 4px 0 4px 9px;
        }
        .aui-list-item-title{
            font-size: 13px !important;
            text-align: left;
        }
        .aui-list-item-inner .aui-list-item-right{
            color: #242424;
        }
        .time{
            font-size: 12px !important;
            color: #8b8b8b !important;
        }
    </style>
</head>
<body style="overflow-x: hidden;background: #fff">
<header class="aui-bar aui-bar-nav" id="aui-header">
    <a class="aui-btn aui-pull-left" tapmode onclick="history.back();">
        <span class="aui-iconfont aui-icon-left"></span>
    </a>
    <div class="aui-title">积分明细</div>
    <div class="aui-btn aui-pull-right"></div>
</header>
<div class="aui-content aui-margin-b-15">
    <ul class="aui-list aui-list-in">

    </ul>
</div>

<script src="../../myJs/jquery.js"></script>
<script src="../../myJs/jquery.cookie.js"></script>
<script>
    var data={
        "code": 95158,
        "msg":[
        {
            "name": "发布订单请求",
            "time": "2017-8-2 11：10",
            "int": "+2",
        },
    {
        "name": "取消订单请求",
            "time": "2017-8-1 10：03",
            "int": "-3",
    },
    {
        "name": "成为快递员",
                "time": "2017-7-70 15：20",
                "int": "+10",
    }]

    }
    $(function() {
        /*  $.ajax({
         type: "post",
         url: '/randomdelivery/userWalletManageController/',
         data: { },
         datatype: "json",
         success: function (data) {

         }
         });*/
        viewPay(data);
    })

    function viewPay(data){
        $.each(data.msg, function (num,data) {
            $(".aui-list-in").append(' <li class="aui-list-item">\
                    <div class="aui-list-item-inner">\
                    <div class="aui-list-item-title">'+data.name+'\
                    <div class="aui-list-item-title time">'+data.time+'</div>\
            </div>\
            <div class="aui-list-item-right" style="color:#fb5212;">'+data.int+'</div>\
                    </div>\
                    </li>')
        })
    }
</script>
</body>
</html>